libxl: allow to allocate cpumap with specific size
authorYang Zhang <yang.z.zhang@Intel.com>
Thu, 28 Jun 2012 16:47:13 +0000 (17:47 +0100)
committerYang Zhang <yang.z.zhang@Intel.com>
Thu, 28 Jun 2012 16:47:13 +0000 (17:47 +0100)
commit928c75ce59fc11c707b8bfd0b99ce0c07ab89926
treeac46f583868400516b25bba67a19915c7888df1c
parent8f7e8f7b56f62eb7fe7d459424b9f56466faaefb
libxl: allow to allocate cpumap with specific size

Currently, libxl_cpumap_alloc()allocate the cpumap with size of number
of physical cpus. In some place, we may want to allocate specific size
of cpumap.  This patch allow to pass a argument to specific the size
that you want to allocate. If pass 0, it means the size is equal to
number of physical cpus.

Signed-off-by: Yang Zhang <yang.z.zhang@Intel.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/libxl/libxl.c
tools/libxl/libxl_create.c
tools/libxl/libxl_utils.c
tools/libxl/libxl_utils.h
tools/libxl/xl_cmdimpl.c